<?php
// +-------------------------------------------------------------------
// |
// +-------------------------------------------------------------------
// | Copyright (c) 2009-2016 All rights reserved.
// +-------------------------------------------------------------------
namespace Service\Api\V1;

class ArchivesVisionAdd
{
    public $login = true; //是否需要登录才能访问该接口
    public $title = "验光记录添加";
    public $group = '档案管理';
    public $desc = "";

    public $input = [
        'aid' => 'label=档案id;',
        'sph_left' => 'label=左眼度数;',
        'sph_right' => 'label=右眼度数;',
        'pd' => 'label=瞳距;',
        'cyl_left' => 'label=散光左眼;',
        'cyl_right' => 'label=散光右眼;',
        'axi_left' => 'label=左眼轴位;',
        'axi_right' => 'label=右眼轴位;',
        'optometry_time' => 'label=验光日期;',
    ];

    public $output = [

    ];

    public function run($param, $uid)
    {
        $result = OE('Archives')->visionAdd($uid, $param);
        return $result;
    }
}
